import http from '@/utils/request'

export const list = {
  getProducts: {
    url: 'collection-history/products',
    method: 'get'
  },
  getHistory: {
    url: 'collection-history/browsing-history',
    method: 'get'
  }
}

export const getProducts = params => {
  return http.request({
    ...list.getProducts,
    params
  })
}

export const getHistory = params => {
  return http.request({
    ...list.getHistory,
    params
  })
}
